package com.soda.service;

import java.util.List;

import com.soda.bean.Fmenu;
import com.soda.bean.Role;
import com.soda.util.PageInfo;
import com.soda.util.SelectRoleInfo;

public interface RoleService {

	List<Role> getAllRole();

	Role getRoleById(int rolId);

	int editRoleToFmenu(int rolId, int i);

	int deleteRoleToFmenuAndMenu(int rolId);

	void addRoleToMenu(int rolId, int parseInt);

	int editRoleInfo(int rolId, String rolName, int rolState, String rolRemark);

	void editState(int id, int state);

	int deleteById(int id);

	List<Fmenu> getAllFmenuAndMenu();

	int addRoleInfo(String rolName, int rolState, String rolRemark);

	int getAllCount(SelectRoleInfo sri);

	List<Role> getAllRoleBySelectInfo(SelectRoleInfo sri, PageInfo pi);

	int ajaxrolename(String rolname);

	String getRoleNameById(int id);

}
